/**
 * Created by koudaiwang on 2017/6/21.
 */


var NewsType = require('./dao').NewsType;

module.exports = {
    create: function create(typeModel) {
        return NewsType.create(typeModel).exec();
    },

    getAllType: function () {
        return NewsType.find().sort({ type: -1 }).exec();
    }
}
